package main

import (
	"fmt"
	"net/http"
	"./asset"
	"./data"
)

var address = "127.0.0.1:9008"

func main() {
	fs := asset.AssetFS{
		Asset:     data.Asset,
		AssetDir:  data.AssetDir,
		AssetInfo: data.AssetInfo,
		Prefix:    "public",
	}

	http.Handle("/", http.FileServer(&fs))

	fmt.Println("http server: ", fmt.Sprintf("http://%s", address))

	if err := http.ListenAndServe(address, nil); err != nil {
		panic(err)
	}
}